package leetcode.math;

import leetcode.math.common.MathUtils;

import java.util.Arrays;

class Solution1828 {
    public int[] countPoints(int[][] points, int[][] queries) {
        return MathUtils.countPoints(points, queries);
    }
}

public class leetcode1828 {
    public static void main(String[] args) {
        Solution1828 solution1828 = new Solution1828();
        int[][] points = {{1, 3}, {3, 3}, {5, 3}, {2, 2}};
        int[][] queries = {{2, 3, 1}, {4, 3, 1}, {1, 1, 2}};
        System.out.println(Arrays.toString(solution1828.countPoints(points, queries)));

        int[][] points1 = {{1, 1}, {2, 2}, {3, 3}, {4, 4}, {5, 5}};
        int[][] queries1 = {{1, 2, 2}, {2, 2, 2}, {4, 3, 2}, {4, 3, 3}};
        System.out.println(Arrays.toString(solution1828.countPoints(points1, queries1)));
    }
}
